package
{
	import data.AccountInfo;
	import data.PlayerInfo;
	
	import flash.display.Sprite;
	import flash.events.Event;
	import flash.system.Capabilities;
	import flash.system.System;
	
	import manager.PathManager;
	import manager.StartupManager;
	
	[SWF(width='1000',height='600',frameRate='40')]
	public class RadStartup extends Sprite
	{
		public function RadStartup()
		{
			if(stage)
			{
				init();
			}else
			{
				addEventListener(Event.ADDED_TO_STAGE,init);
			}
		}
		
		private function init(event:Event = null):void
		{
			trace(Capabilities.version);
			var acc:AccountInfo = new AccountInfo();
			acc.username='herman';
			acc.password='123456';
			PathManager
			
//			var sp:Sprite = new Sprite();
//			sp.graphics.beginFill(0xff0000,1);
//			sp.graphics.drawRect(0,0,100,100);
//			sp.graphics.endFill();
//			stage.addChild(sp);
			StartupManager.Instance.start(stage,acc);
		}
	}
}